package com.kang.service;

import java.util.List;

import com.kang.pojo.SupplyAgreement;
import com.vonechina.entity.page.SupplyAgreementPage;

/**
 * 供货协议服务层
 * 
 * @author zs614
 *
 */
public interface SupplyAgreementService {

	/**
	 * 分页查询供货协议
	 * 
	 * @param supplyAgreementPage
	 *            搜索条件实体类
	 * @return
	 */
	public List<SupplyAgreement> listAgreement(SupplyAgreementPage supplyAgreementPage);

	/**
	 * 删除供货协议
	 * 
	 * @param supplyagreementid
	 *            供货协议ID
	 * @return
	 */
	public int deleteByPrimaryKey(Integer supplyagreementid);

	/**
	 * 新增供货协议
	 * 
	 * @param record
	 *            供货协议实体类
	 * @return
	 */
	public int insert(SupplyAgreement record);

	/**
	 * 新增供货协议
	 * 
	 * @param record
	 *            供货协议实体类
	 * @return
	 */
	public int insertSelective(SupplyAgreement record);

	/**
	 * 通过ID查询供货协议
	 * 
	 * @param supplyagreementid
	 *            供货协议ID
	 * @return
	 */
	public SupplyAgreement selectByPrimaryKey(Integer supplyagreementid);

	/**
	 * 更新供货协议
	 * 
	 * @param record
	 *            供货协议实体类
	 * @return
	 */
	public int updateByPrimaryKeySelective(SupplyAgreement record);

	/**
	 * 更新供货协议
	 * 
	 * @param record
	 *            供货协议实体类
	 * @return
	 */
	public int updateByPrimaryKey(SupplyAgreement record);

	/**
	 * 生成供货协议编号
	 * 
	 * @return
	 */
	public String generatoCode();
}
